package com.mediocre.dto;

import com.mediocre.entity.Post;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

//@ApiModel(value = "博客园查询到的随笔DTO", description = "博客园查询到的随笔数据传输对象")
@ApiModel(description = "博客园查询到的随笔数据传输对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostQueryDTO implements Serializable {
    private static final long serialVersionUID = 1;
//    {"id":15186220,"title":"problems_ubuntu","url":"//www.cnblogs.com/mediocreWorld/p/15186220.html","isPublished":true,"isDraft":false,"feedBackCount":0,"webCount":1,"aggCount":0,"viewCount":1,"datePublished":"2021-08-25T17:41:00","entryName":null,"postType":1,"postConfig":16477,"dateUpdated":"2021-08-26T10:19:00","accessPermission":0,"isInSiteHome":false,"isInSiteCandidate":false}
//    private ArrayList<Post> postList; 设置为集合也可以
    private PostQuerySubDTO[] postList;
    private Integer postsCount;
    private Integer pageIndex;
    private Integer pageSize;
    private String categoryName;
    private String[] errors;
    private Integer type;
}
